package com.lvmama.pangolin.mybatis.mapper.hotel;

import java.util.List;
import java.util.Map;

import com.lvmama.pangolin.entity.hotel.HotelCommodityDetailError;
import org.apache.ibatis.annotations.Param;

import com.lvmama.pangolin.core.BaseMapper;
import com.lvmama.pangolin.entity.CommodityConditionVO;
import com.lvmama.pangolin.entity.InputCommodityVO;
import com.lvmama.pangolin.entity.hotel.HotelCdetail;
import com.lvmama.pangolin.entity.hotel.HotelCommodityDetail;

public interface HotelCommodityDetailMapper extends BaseMapper<HotelCommodityDetail> {
	public int saveCdetail(HotelCdetail t);
	public int updateByCdetail(HotelCdetail t);
	public int deleteByProdMap(Map<String,String> param);
	public void setIsLinkd(@Param("companyCode")String companyCode,@Param("productId")String productId,@Param("commodityId")String commodityId);
	public void deleteLinkd(@Param("companyCode")String companyCode,@Param("productId")String productId,@Param("commodityId")String commodityId);
	public List<HotelCommodityDetail> findByCommVO(CommodityConditionVO co);
	public List<HotelCommodityDetail> findByProdCommName(@Param("productId")String productId,@Param("commodityName")String commodityName,@Param("companyCode")String companyCode);
	public HotelCommodityDetail findByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId,@Param("companyCode")String companyCode);
	public List<HotelCommodityDetail>findByInputCommodityVO(InputCommodityVO co);
	public int updateByProdCommId(HotelCommodityDetailError hotel);
	public int updateByObject(HotelCommodityDetailError hotel);
	public int insert(HotelCommodityDetailError hotel);
}